package com.example.mybackend.service;

import com.example.mybackend.entity.user;
import com.example.mybackend.mapper.userMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class userServiceImpl implements userService {
    @Autowired
    private userMapper userMapper;

    @Override
    public List<user> selectAll() {
        return userMapper.selectAll();
    }

    @Override
    public Integer updateStatusTo0(Integer id) {
        return userMapper.updateStatusTo0(id);
    }

    @Override
    public Integer updateStatusTo1(Integer id) {
        return userMapper.updateStatusTo1(id);
    }

    @Override
    public Integer updateUser(user User) {
        return userMapper.updateUser(User);
    }
}
